package com.altekis.kanbankaze.client;

import com.google.gwt.core.client.GWT;
import com.google.gwt.resources.client.CssResource;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.AbsolutePanel;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;

public class AvatarSelectionView extends Composite implements AvatarSelectionPresenter.Display {

	private static AvatarSelectionUiBinder uiBinder = GWT
			.create(AvatarSelectionUiBinder.class);

	interface AvatarSelectionUiBinder extends UiBinder<Widget, AvatarSelectionView> {
	}

	interface AvatarStyle extends CssResource {
		String avatar();
	}

	@UiField
	AbsolutePanel panel;
	@UiField
	AvatarStyle style;

	@Inject
	public AvatarSelectionView() {
		initWidget(uiBinder.createAndBindUi(this));
		
	}

	public Panel getPanel() {
		return (Panel) panel;
	}

	public String getAvatarClassName() {
		return style.avatar();
	}
}
